<?php
namespace app\index\controller;

use think\Controller;

class Index extends Base
{
    // TODO:前端可以添加 我的订单

    public function index()
    {
        $bigFeatured = model('Featured')->getFeatured(0);
        $rightFeatured = model('Featured')->getFeatured(1);


        $datas = model('Deal')->getNormalDealByCategoryCityId(2, $this->city['id']);
        // 获取四个子分类
        $meishiCats = model('Category')->getNormalRecommendCategoryByParentId(2, 4);

        $this->assign([
            'bigFeatured' => $bigFeatured,
            'rightFeatured' => $rightFeatured,
            'datas' => $datas,
            'meishicates' => $meishiCats,
        ]);
        return $this->fetch();
    }

}
